<# # It is recommended to test the script on a local machine for its purpose and effects. # Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script to clean up recycle bin # Configuration Type - COMPUTER #> #Empty Recyle Bin $driveName = (Get-ChildItem -Path Env:\SystemDrive).Value Remove-Item -Path $driveName\`$recycle.bin -Recurse -Force Write-Host "Recyle Bin was Emptied"